<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
<html>

<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-language" content="en" />
<meta name="Keywords" content="progress,ant,compilation,automated,task,querret,apache,build tools,roundtable" />
<meta name="Description" content="PCT is set of ANT tasks designed to compile Progress procedures among others things" />
<meta name="revisit-after" content="30 days" />
<meta name="DC.Language" content="en" />
<title>PCT documentation - PCTLoadData task</title>
<link rel="stylesheet" type="text/css" href="style.css" media="screen" title="Normal" />
</head>
<body>

<div class="Main">

<div class="Bandeau">
  <span id="sflogo">
    <a href="http://sourceforge.net"><img id="sflogoimg" alt="SourceForge.net Logo" height="31" width="88" src="http://sourceforge.net/sflogo.php?group_id=%3Cb%3E85743%3C/b%3E&amp;amp;type=1"/></a>
  </span>
  Progress&reg; OpenEdge&reg; Compilation Tools
</div>

<div class="Menu">
  <a href="index.html">Overview</a>
  :: <a href="download.html">Download</a>
  :: <a href="screenshots.html">Screenshots</a>
  :: <span class="selected">Documentation</span>
  :: <a href="javadoc/index.html">JavaDoc</a>
  :: <a href="links.html">Links</a>
</div>

@RIGHT_BANNER@

<div class="Text">
<h1>PCTLoadData task -- &lt;pct:data_load /&gt;</h1>

<h2>Description</h2>
<p>
Load tables data from plain .d files
</p>

<h2>Parameters</h2>
<table class="params">
<tr>
<th>Attribute</th>
<th>Description</th>
<th>Type</th>
<th>Requirement</th>
<th>Default value</th>
</tr>
<tr>
<td>srcDir</td>
<td>Source directory from where to load data</td>
<td align="center">File</td>
<td align="center">Required</td>
<td>No default value</td>
</tr>
<tr>
<td>Tables</td>
<td>Loads only the selected tables. Comma-separated list</td>
<td align="center">String</td>
<td align="center">Optional</td>
<td>No default value</td>
</tr>
</table>
<p>PCTLoadData inherits attributes from <a href="PCT.html">PCT</a> and
<a href="PCTRun.html">PCTRun</a>. However, PCTLoadData <strong>must</strong>
have <strong>one and only one</strong> PCTConnection.</p>

<h2>Parameters as nested elements</h2>
<h3>Table</h3>
<p>
Loads a specific table. If no Table nodes are used, then PCTLoadData tries to load every table in dictionary.
</p>

<h2>Examples</h2>
<pre>
&lt;PCTLoadData srcDir="data" dlcHome="${env.DLC}"&gt;
  &lt;PCTConnection dbName="test" singleUser="true" /&gt;
&lt;/PCTLoadData&gt;
</pre>
<p>Connects in single-user mode to test.db and loads each file from data directory in it</p>

<pre>
&lt;PCTLoadData srcDir="data" dlcHome="${env.DLC}"&gt;
  &lt;PCTConnection dbName="test" singleUser="true" /&gt;
  &lt;Table name="Table1" /&gt;
  &lt;Table name="Table2" /&gt;
&lt;/PCTLoadData&gt;
</pre>
<p>Connects in single-user mode to test.db and tries to load only Table1.d and Table2.d from data directory. If Table3 is present in dictionary,
and Table3.d is present in data directory, then this file will be skipped.</p>

</div>

</div>

@ANALYTICS@</body>
</html>
